home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / ixemul-complete / ixemul / string / makefile.in < prev    next >
Makefile  |  1996-08-13  |  1KB  |  64 lines

  1. #### Start of system configuration section. ####
  2.  
  3. srcdir =    @srcdir@
  4.  
  5. ifeq ($(srcdir),.)
  6. srcdir = ../..
  7. endif
  8.  
  9. VPATH :=    $(srcdir)
  10.  
  11. # Common prefix for machine-independent installed files.
  12. prefix =    @prefix@
  13.  
  14. # Common prefix for machine-dependent installed files.
  15. exec_prefix =    @exec_prefix@
  16.  
  17. bindir =    $(exec_prefix)/bin
  18. libdir =    $(exec_prefix)/Sys/libs
  19.  
  20. INSTALL =    @INSTALL@
  21. INSTALL_DATA =    @INSTALL_DATA@
  22.  
  23. CC =        @CC@
  24.  
  25. CFLAGS =    @CFLAGS@
  26. LDFLAGS =    @LDFLAGS@
  27.  
  28. RANLIB =    @RANLIB@
  29. AR =        ar
  30.  
  31. #### End system configuration section ####
  32.  
  33. # I *love* GNU make!
  34. define catenate
  35. /bin/echo -n creating $@...
  36. /bin/echo "$(^:%=#include \"%\"\n)" >$@
  37. /bin/echo done
  38. endef
  39.  
  40. FLAVOR_CFLAGS =    -m$(CPU) -m$(FPU)
  41. ALL_CFLAGS =    $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) -g $(INCS)
  42.  
  43. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  44. LIB =        libstring.a
  45.  
  46. .c.o:
  47.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  48.  
  49. SRC =           $(notdir $(wildcard $(srcdir)/*.c))
  50.  
  51. $(LIB) :    all.o
  52.         rm -f $@
  53.         $(AR) rv $@ $^
  54.         $(RANLIB) $@
  55.  
  56. all.c:        $(SRC)
  57.         @$(catenate)
  58.  
  59. clean:
  60.         rm -rf 680?0
  61.  
  62. clobber:    clean
  63.         rm -f Makefile
  64.